Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tian/role filter #71

Merged
merged 5 commits into from
Oct 28, 2023
Merged

Tian/role filter #71

merged 5 commits into from
Oct 28, 2023

Conversation

tsun900
Copy link
Collaborator

@tsun900 tsun900 commented Oct 16, 2023

I have completely changed how the semester filter works where the old implementation works as the following:

Fetch all users from the server -> Combine potential semester and year lists gathered from the data and put it in the filter -> Apply the filter

While URL query method applies a filter at API while we fetch data from the server, which is not compatible with the old method. In addition to that the old implementation was constructed based on the assumption that there is only one filter, as a result, I am unable to add a new filter using the old implementation. Therefore, I have changed the semester filter into the query parameter method and applied the filter at the backend API. However, due to this change, we now do need to keep updating the list of potential semesters in .../server/utils/fields.js

How to Test

Go to the admin dashboard after login. Select fields from the dropdown and check that the correct data is filtered and displayed when applying filter such as developer or senior dev.

@netlify
Copy link

netlify bot commented Oct 16, 2023

Deploy Preview for boggers ready!

Name Link
🔨 Latest commit 5ee3d3a
🔍 Latest deploy log https://app.netlify.com/sites/boggers/deploys/653d291359389f00082fb32e
😎 Deploy Preview https://deploy-preview-71--boggers.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tsun900 tsun900 self-assigned this Oct 16, 2023
@tsun900 tsun900 linked an issue Oct 16, 2023 that may be closed by this pull request
5 tasks
Copy link
Member

@dpang314 dpang314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@dpang314 dpang314 merged commit 8ae71cf into main Oct 28, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fullstack] Add dropdown to filter by user role
2 participants